.class public Lrexsee/core/progress/RexseeProgressDialog;
.super Ljava/lang/Object;
.source "RexseeProgressDialog.java"

# interfaces
.implements Lrexsee/core/browser/clazz/JavascriptInterface;


# static fields
.field private static final INTERFACE_NAME:Ljava/lang/String; = "ProgressDialog"


# instance fields
.field private final mBrowser:Lrexsee/core/browser/Browser;

.field private final mContext:Landroid/content/Context;

.field private mProgressDialog:Landroid/app/ProgressDialog;


# direct methods
.method public constructor <init>(Lrexsee/core/browser/Browser;)V
    .locals 1
    .param p1, "browser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 36
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 30
    const/4 v0, 0x0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;

    .line 37
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressDialog;->mBrowser:Lrexsee/core/browser/Browser;

    .line 38
    invoke-virtual {p1}, Lrexsee/core/browser/Browser;->getContext()Landroid/content/Context;

    move-result-object v0

    iput-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mContext:Landroid/content/Context;

    .line 39
    return-void
.end method

.method static synthetic access$0(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/app/ProgressDialog;
    .locals 1

    .prologue
    .line 30
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;

    return-object v0
.end method

.method static synthetic access$1(Lrexsee/core/progress/RexseeProgressDialog;)Landroid/content/Context;
    .locals 1

    .prologue
    .line 32
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mContext:Landroid/content/Context;

    return-object v0
.end method

.method static synthetic access$2(Lrexsee/core/progress/RexseeProgressDialog;Landroid/app/ProgressDialog;)V
    .locals 0

    .prologue
    .line 30
    iput-object p1, p0, Lrexsee/core/progress/RexseeProgressDialog;->mProgressDialog:Landroid/app/ProgressDialog;

    return-void
.end method

.method static synthetic access$3(Lrexsee/core/progress/RexseeProgressDialog;)Lrexsee/core/browser/Browser;
    .locals 1

    .prologue
    .line 33
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mBrowser:Lrexsee/core/browser/Browser;

    return-object v0
.end method


# virtual methods
.method public getInheritInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 23
    iget-object v0, p1, Lrexsee/core/browser/Browser;->progressDialog:Lrexsee/core/progress/RexseeProgressDialog;

    return-object v0
.end method

.method public getInterfaceName()Ljava/lang/String;
    .locals 2

    .prologue
    .line 19
    new-instance v0, Ljava/lang/StringBuilder;

    iget-object v1, p0, Lrexsee/core/progress/RexseeProgressDialog;->mBrowser:Lrexsee/core/browser/Browser;

    iget-object v1, v1, Lrexsee/core/browser/Browser;->application:Lrexsee/core/application/RexseeApplication;

    iget-object v1, v1, Lrexsee/core/application/RexseeApplication;->resources:Lrexsee/core/application/Resource;

    iget-object v1, v1, Lrexsee/core/application/Resource;->prefix:Ljava/lang/String;

    invoke-static {v1}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {v0, v1}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v1, "ProgressDialog"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getNewInterface(Lrexsee/core/browser/Browser;)Lrexsee/core/browser/clazz/JavascriptInterface;
    .locals 1
    .param p1, "childBrowser"    # Lrexsee/core/browser/Browser;

    .prologue
    .line 27
    new-instance v0, Lrexsee/core/progress/RexseeProgressDialog;

    invoke-direct {v0, p1}, Lrexsee/core/progress/RexseeProgressDialog;-><init>(Lrexsee/core/browser/Browser;)V

    return-object v0
.end method

.method public hide()V
    .locals 2

    .prologue
    .line 91
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressDialog$3;

    invoke-direct {v1, p0}, Lrexsee/core/progress/RexseeProgressDialog$3;-><init>(Lrexsee/core/progress/RexseeProgressDialog;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 103
    return-void
.end method

.method public show(Ljava/lang/String;)V
    .locals 1
    .param p1, "message"    # Ljava/lang/String;

    .prologue
    .line 87
    const-string v0, ""

    invoke-virtual {p0, p1, v0}, Lrexsee/core/progress/RexseeProgressDialog;->show(Ljava/lang/String;Ljava/lang/String;)V

    .line 88
    return-void
.end method

.method public show(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .param p1, "message"    # Ljava/lang/String;
    .param p2, "cancelCallback"    # Ljava/lang/String;

    .prologue
    .line 75
    const-string v0, ""

    invoke-virtual {p2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 76
    const/4 v0, 0x0

    invoke-virtual {p0, p1, v0}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    .line 85
    :goto_0
    return-void

    .line 78
    :cond_0
    new-instance v0, Lrexsee/core/progress/RexseeProgressDialog$2;

    invoke-direct {v0, p0, p2}, Lrexsee/core/progress/RexseeProgressDialog$2;-><init>(Lrexsee/core/progress/RexseeProgressDialog;Ljava/lang/String;)V

    invoke-virtual {p0, p1, v0}, Lrexsee/core/progress/RexseeProgressDialog;->showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V

    goto :goto_0
.end method

.method public showWithRunnable(Ljava/lang/String;Ljava/lang/Runnable;)V
    .locals 2
    .param p1, "message"    # Ljava/lang/String;
    .param p2, "cancelRunnable"    # Ljava/lang/Runnable;

    .prologue
    .line 41
    iget-object v0, p0, Lrexsee/core/progress/RexseeProgressDialog;->mContext:Landroid/content/Context;

    check-cast v0, Landroid/app/Activity;

    new-instance v1, Lrexsee/core/progress/RexseeProgressDialog$1;

    invoke-direct {v1, p0, p1, p2}, Lrexsee/core/progress/RexseeProgressDialog$1;-><init>(Lrexsee/core/progress/RexseeProgressDialog;Ljava/lang/String;Ljava/lang/Runnable;)V

    invoke-virtual {v0, v1}, Landroid/app/Activity;->runOnUiThread(Ljava/lang/Runnable;)V

    .line 71
    return-void
.end method
